package com.sanyang.pda.presenter;


import com.sanyang.pda.bean.ToBeStoredBean;
import com.sanyang.pda.contract.ToBeStoredContract;
import com.sanyang.pda.net.NetUtils;
import com.wangshen.base.net.bean.BaseRowsAppEntity;
import com.wangshen.base.ui.mvp.base.presenter.BasePresenter;

import java.util.List;

import io.reactivex.functions.Consumer;

public class ToBeStoredPresenter extends BasePresenter<ToBeStoredContract.View> implements ToBeStoredContract.Presenter {

    @Override
    public void samplingResultList(String en) {

        /*NetUtils.geApi().samplingResultList(en)
                .compose(this.handleEverythingResult())
                .subscribe(new Consumer<BaseRowsAppEntity<List<ToBeStoredBean>>>() {
                    @Override
                    public void accept(BaseRowsAppEntity<List<ToBeStoredBean>> listBaseRowsAppEntity) throws Exception {
                        getView().setList(listBaseRowsAppEntity.getRows());
                    }
                }, new Consumer<Throwable>() {
                    @Override
                    public void accept(Throwable throwable) throws Exception {
                        getView().showMessage(throwable.getMessage());
                    }
                });*/
    }
}
